var wb={};wb.init=function(){wb.ncont();wb.common();};
wb.ncont = function () {
  //列表动画js
  wbul(".wbul"); function wbul(ul){ var nodes=document.querySelectorAll(ul+" li"),_nodes=[].slice.call(nodes,0);var getDirection=function(ev,obj){var w=obj.offsetWidth,h=obj.offsetHeight,x=(ev.pageX-obj.offsetLeft-(w/2)*(w>h?(h/w):1)),y=(ev.pageY-obj.offsetTop-(h/2)*(h>w?(w/h):1)),d=Math.round(Math.atan2(y,x)/1.57079633+5)%4;return d;};var addClass=function(ev,obj,state){var direction=getDirection(ev,obj),class_suffix="";obj.className="";switch(direction){case 0:class_suffix='-top';break;case 1:class_suffix='-right';break;case 2:class_suffix='-bottom';break;case 3:class_suffix='-left';break;} obj.classList.add(state+class_suffix);};_nodes.forEach(function(el){el.addEventListener('mouseover',function(ev){addClass(ev,this,'in');},false);el.addEventListener('mouseout',function(ev){addClass(ev,this,'out');},false);}); }
}
wb.common = function () {
// Share
// window._bd_share_config={"share":{}};with(document){0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion="+~(-new Date()/3600000)]};  
//Gotop
$(window).scroll(function(){$(window).scrollTop()>500?$("#gotop").show():$("#gotop").hide()});$("#gotop").click(function(){$("body,html").animate({scrollTop:0},1000);return false});
}

$(function () {
  wb.init();
});